// import React from 'react';
// import ReactDOM from 'react-dom';

import React from './lib/react';
import ReactDOM from './lib/react-dom';

// const App = <h1 className="demo" style={{color: 'red'}}>React 源码学习</h1>;

const App2 = React.createElement('h1', {
  className: 'demo',
  style: {
    color: 'red'
  }
}, 'React 源码学习', React.createElement('span', null, 'world'));

console.log(JSON.stringify(App2, null, 2))

ReactDOM.render(
  App2,
  document.getElementById('root')
);

